package com.vhall.component.entity.rbac.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author longzhen.gong
 * @date 2021/6/10 15:39
 */
@Data
public class RoleVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonProperty("role_id")
    private Integer roleId;

    @ApiModelProperty(value = "角色名称")
    private String name;

    @ApiModelProperty(value = "角色标识")
    private String code;

    @ApiModelProperty(value = "描述")
    private String desc;

    @ApiModelProperty(value = "状态 0：正常 1：无效")
    private Integer status;

    @ApiModelProperty(value = "应用id")
    @JsonProperty("app_id")
    private String appId;

    @ApiModelProperty(value = "角色级别")
    private Integer level;


    @ApiModelProperty(value = "创建时间")
    @JsonProperty("created_at")
    private LocalDateTime createdAt;


    @ApiModelProperty(value = "更新时间")
    @JsonProperty("updated_at")
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "删除时间")

    @JsonProperty("deleted_at")
    private LocalDateTime deletedAt;
}
